import request from '@/utils/request.js'

const prefix = '/api/nbot/act'


const Info = (id) => {
	return request({
		url: `${prefix}/Info/${id}`
	})
}

const TypeData = () => {
	return request({
		url: `${prefix}/TypeData`
	})
}

const AddImage = (data) => {
	return request({
		url: `${prefix}/AddImage`,
		data,
		method: 'post'
	})
}


const Join = (data) => {
	return request({
		url: `${prefix}/Join`,
		data,
		method: 'post'
	})
}


const List = (params) => {
	return request({
		url: `${prefix}/List`,
		params
	})
}

/**
 * 我参与的活动
 */
const JoinActList = (params) => {
	return request({
		url: `${prefix}/JoinActList`,
		params
	})
}

/**
 * 我组织的活动
 */
const CreateActList = (params) => {
	return request({
		url: `${prefix}/CreateActList`,
		params
	})
}



export default {
	Info,
	TypeData,
	List,
	AddImage,
	Join,
	JoinActList,
	CreateActList
}